<?php

namespace app\controller;

class DictBase
{
    public function index()
    {
        $query = \app\model\Dict::field(['id', 'group_code', 'code', 'label', 'value', 'color']);

        $models = $query->select();

        return json(['code' => 20000, 'data' => ['dicts' => $models]]);
    }
}
